#!/bin/csh 

foreach run (RA007 RA008 RA010) 

setenv NCL    ncl 
setenv SCT    ${KAILIB_ROOT}/sct_radonsite/read_rn222.ncl 
setenv RUNDIR ${KAILIB_ROOT}/sct_radonsite/${run}  
setenv MODDIR /pf/m/m222044/scr/${run} 

mkdir     ${RUNDIR}
cd        ${RUNDIR} 
echo      ${RUNDIR}

foreach yy (1999 2000 2001 2002 2003) 
foreach mm ("01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12")

cat > load.ncl << EOF
  scale = 1.  
  filenama = "${MODDIR}/${run}_" + "${yy}${mm}" + ".01" + "_tracer.nc"
  filenamo = "${RUNDIR}/rna."    + "${yy}${mm}" + ".nc"
EOF

${NCL} ${SCT} 

end
end


